﻿<%@ Page Title="V.生活" Language="C#" MasterPageFile="~/Wap/Shop/ShopSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ZLCMS.Web.Wap.Shop.Default" %>
<%@ Register src="~/Wap/Shop/Footer.ascx" tagname="Footer" tagprefix="uc1" %>
<%@ Register src="UC_ShopNavBar.ascx" tagname="UC_ShopNavBar" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!--S banner-->
    <link href="/wap/lib/bxslider/jquery.bxslider.css" rel="stylesheet" type="text/css"/>
    <script src="/wap/lib/bxslider/jquery.bxslider.js"></script>
    <!--E banner-->
    
<style type="text/css">
.bx-wrapper {margin:0 auto;}
</style>

    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pages" runat="server">
<!--S page -->
<div data-role="page" id="mypage">

	<!--S header -->
	<div data-role="header" data-position="fixed" data-tap-toggle="false">
	    <uc2:UC_ShopNavBar ID="UC_ShopNavBar1" runat="server" />
	</div>
    <!--E header -->
	
    <!--S content -->
	<div role="main" class="ui-content storedefault">

        <!--S banner-->
        <div id="banner">
            <ul class="bxslider">
    					<li><a href="/Wap/Shop/productlist.aspx?categoryid=135" data-ajax="false"><img src="dvimg/index_1.jpg" /></a></li>
    					<li><a href="http://gdtv.haowanbao.net/wap/seckill/StartKill.aspx" data-ajax="false"><img src="dvimg/index_2.jpg" /></a></li>
    					<li><a href="/Wap/Shop/ProductDetail.aspx?no=NO0000000302" data-ajax="false"><img src="dvimg/index_p_1.jpg" /></a></li>
    					<li><a href="/Wap/Shop/ProductDetail.aspx?no=NO0000000309" data-ajax="false"><img src="dvimg/index_p_2.jpg" /></a></li>
    					<li><a href="/Wap/Shop/ProductDetail.aspx?no=NO0000000304" data-ajax="false"><img src="dvimg/index_p_3.jpg" /></a></li>
    					<li><a href="/Wap/Shop/ProductDetail.aspx?no=NO0000000303" data-ajax="false"><img src="dvimg/index_P_4.jpg" /></a></li>
            </ul>
        </div>
        <!--E banner-->
        
            <%--<div class="adverTxt">
                <div class="adverTxt_box">
                    <img src="images/adverinfo.png" />
                    <p>微电流铂金滚轮美容按摩器优惠券</p>
                    <a href="">马上领取</a>
                </div>
                <div class="adverTxt_box">
                    <img src="images/adverinfo.png" />
                    <p>啦啦啦啦啦</p>
                    <a href="">马上领取</a>
                </div>
            </div>--%>
            <div class="dayKill">
                    <a href="http://gdtv.haowanbao.net/wap/seckill/StartKill.aspx" data-ajax="false"><img src="dvimg/miao.gif" style="width:100%" /></a>
<%--                <h5>今日秒杀</h5>
                <div>
                    <div>
                        <p>云南特产松茸</p>
                        <p>限时抢购售完为止</p>
                        <ul class="countDown">
                            <li><span class="h1">0</span><span class="h2">0</span></li>
                            <li>:</li>
                            <li><span class="m1">0</span><span class="m2">0</span></li>
                            <li>:</li>
                            <li><span class="s1">0</span><span class="s2">0</span></li>
                        </ul>
                    </div>
                    <img src="images/product1.jpg" />
                    <div>
                        <p>限时秒杀</p>
                        <a href="">立即抢购</a>
                    </div>
                </div>--%>
            </div>
            <%--<div class="dayfavorable">
                <h5>每日优惠</h5>
                <ul>
                    <li>
                        <img src="images/product2.jpg" />
                        <p class="dayfavorable_title">维达超人系列3层9090抽</p>
                        <div>
                            <span>¥12.8</span>
                            <img src="images/shopcar2.png" />
                        </div>
                    </li>
                    <li>
                        <img src="images/product2.jpg" />
                        <p class="dayfavorable_title">维达超人系列3</p>
                        <div>
                            <span>¥12.8</span>
                            <img src="images/shopcar2.png" />
                        </div>
                    </li>
                    <li>
                        <img src="images/product2.jpg" />
                        <p class="dayfavorable_title">维达超人系列3层9090抽顶顶顶顶</p>
                        <div>
                            <span>¥12.8</span>
                            <img src="images/shopcar2.png" />
                        </div>
                    </li>
                </ul>
            </div>--%>
            <div class="classify"  style="margin-top: 0px;">
                    <img src="dvimg/c.jpg" style="width:100%; margin-top: 5px;" />
                <ul>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=136" data-ajax="false">
                        <div><img src="dvimg/c_1.jpg" /></div>
                        </a>
                    </li>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=137" data-ajax="false">
                        <div><img src="dvimg/c_2.jpg" /></div>
                        </a>
                    </li>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=138" data-ajax="false">
                        <div><img src="dvimg/c_3.jpg" /></div>
                        </a>
                    </li>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=139" data-ajax="false">
                        <div><img src="dvimg/c_4.jpg" /></div>
                        </a>
                    </li>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=140" data-ajax="false">
                        <div><img src="dvimg/c_5.jpg" /></div>
                        </a>
                    </li>
                    <li>
                        <a href="/Wap/Shop/productlist.aspx?categoryid=141" data-ajax="false">
                        <div><img src="dvimg/c_6.jpg" /></div>
                        </a>
                    </li>
                </ul>
            </div>
                    <img src="dvimg/b.jpg" style="width:100%" />
            <div class="actboxContainer" loading_command="0">
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000302"><img src="dvimg/index_p_1.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000309"><img src="dvimg/index_p_2.jpg"></a>  </div></div>
<%--            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000304"><img src="dvimg/index_p_3.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000312"><img src="dvimg/index_p_4.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000320"><img src="dvimg/index_p_5.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000330"><img src="dvimg/index_p_6.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000319"><img src="dvimg/index_p_7.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000321"><img src="dvimg/index_p_8.jpg"></a>  </div></div>
            	<div class="indexbox"><div style="padding: 0px;" class="actbox">  <a data-ajax="false" href="/Wap/Shop/ProductDetail.aspx?no=NO0000000327"><img src="dvimg/index_p_9.jpg"></a>  </div></div>--%>
            </div>
            <% if (AppId != "dvxc")
               { %>
            <img src="dvimg/m.jpg" style="width:100%; margin-top: 5px;" />
            <div class="shjzdDefaultContainer" style="margin:0.5em 0 1em">
            </div>
            
            <%} %>
        <button id="btnMore" type="button" data-icon="refresh" style="width: 95%; margin-left: auto; margin-right: auto; display:none">显示更多</button>
        
 	</div>
    <!--E content -->
	
    <!--S footer -->
	<div data-role="footer" data-position="fixed" data-tap-toggle="false">
         <uc1:Footer ID="Footer1" runat="server" MenuId="S" />  
    </div>
    <!--E footer -->
</div>
<!--E page -->
    <script src="/wap/lib/common/listviewHandler.js" type="text/javascript"></script>
    <script src="js/clamp.min.js"></script>
    <script type="text/javascript">
        function LoadHomeSlide() {
            var handler = $('.actboxContainer').listviewHandler();
            handler.initialize({
                loaderBtn: $('#btnMore'), //加载数据按钮（点击加载下一页）
                emptyHtml: '', //无记录时显示此html
                itemTemplate: '<div class="indexbox"><div class="actbox" style="padding: 0px;"> ' +
//                          ' <h2>{Title}</h2> ' +
                          ' <a href="{Url}" data-ajax="false"><img src="{ThumbnailUrl}"></a> ' +
//                          ' <p>{Description}</p> ' +
                          ' </div></div>', //项模板
                pageIndex: 1, //页码（从1起算）
                pageSize: 10, //页大小
                totalCount: 999, //总记录数
                itemHandler: function (data, itemTemplate, container) {//数据各项处理
                    data.ThumbnailUrl = firstFilePath(data.PhotoUrl);
                    return itemTemplate.format(data);
                },
                command: 'Pub.LoadAdsList',
                parameter: { PositionCode: "HOME_DV_BUTTOM" }
            });
            handler.nextPage();
        }
        
           function LoadShjzdDefaultData() {
            var handler = $('.shjzdDefaultContainer').listviewHandler();
            handler.initialize({
                loaderBtn: $('#btnMore'), //加载数据按钮（点击加载下一页）
                emptyHtml: '', //无记录时显示此html
                itemTemplate: ' <div class="indexbox" style="margin:0.5em 0"><div class="actbox"> ' +
                          ' <a href="{Url}" data-ajax="false"><img src="{ThumbnailUrl}"></a> ' +
//                          ' <h2>{Title}</h2> ' +
//                          ' <p>{Description}</p> ' +
                          ' </div></div>', //项模板
                pageIndex: 1, //页码（从1起算）
                pageSize: 10, //页大小
                totalCount: 999, //总记录数
                itemHandler: function (data, itemTemplate, container) {//数据各项处理
                    data.ThumbnailUrl = firstFilePath(data.PhotoUrl);
                    return itemTemplate.format(data);
                },
                command: 'Pub.LoadAdsList',
                parameter: { PositionCode: "HOME_SHJZD_BUTTOM" }
            });

            handler.nextPage();
        }

        $(document).ready(function () { 
            <% if (AppId != "dvxc")
               { %>
            LoadShjzdDefaultData();
            <%} %>
        	$('.bxslider').bxSlider({
                auto: true,
                }); 
        });

        $(function () {
            $(window).scroll(function () {
                //当内容滚动到底部时加载新的内容

                if ($(this).scrollTop() + $(window).height() + 20 >= $(document).height() && $(this).scrollTop() > 20) {
                    //当前要加载的页码
                    $('#btnMore').click();
                }
            });

            //第二行文字溢出省略号
            var paragraph = document.getElementsByClassName('dayfavorable_title');
            for (var i = 0; i < paragraph.length; i++) {
                $clamp(paragraph[i], { clamp: 2 });
            }
        });
    </script>

</asp:Content>
